{dede:datalist}
<?php
  if($fields['userid']!='') $spaceurl = $cfg_basehost.'/member/index.php?uid='.$fields['userid'];
  else $spaceurl = "#";
  if($fields['username']==GetLang('anonymous')) $spaceurl = "#";
  $fields['bgimg'] = 'cmt-neu.gif';
  $fields['ftypetitle'] = 'norm';
  if($fields['ftype']=='bad')
  {
  	$fields['bgimg'] = 'cmt-bad.gif';
  	$fields['ftypetitle'] = 'bad';
  }
  else if($fields['ftype']=='good')
  {
  	$fields['bgimg'] = 'cmt-good.gif';
  	$fields['ftypetitle'] = 'good';
  }
?>
document.write("<div class='decmt-box'>");
document.write("<div class='decmt-title'>");
document.write("<span class='moodico'><img src='{dede:global.cfg_templeturl/}/images/mood/ico-mood-<?php if($fields['face']>0) echo $fields['face'];?>.gif'/></span>");
document.write("<span class='username'><a href='<?php echo $spaceurl;?>'>{dede:field.username/}</a></span>");
document.write("<span class='date'>Time: {dede:field.dtime function=GetDateMk(@me)/}</span>");
document.write("<span></span>");
document.write("</div>");
document.write("<div class='decmt-act'>");
document.write("<span><a href='/plus/feedback.php?fid={dede:field.id/}&action=quote'><?php echo GetLang('quote'); ?></a></span>");
document.write("</div>");
document.write("<div class='decmt-content'>{dede:field.msg function='jstrim(@me,100)'/}<img src='{dede:global.cfg_templeturl/}/images/{dede:field.bgimg/}' alt='{dede:field.ftypetitle/}' />");
document.write("</div>");
document.write("</div>");
{/dede:datalist}
